<div ng-include="'tpl/menu.tpl.html'" ng-controller="MgtMenuController"></div>  


<div class="container">
  <div class="row">
    <div class="col-xs-8">
      <form class="form-horizontal css-form" name="form" novalidate>
      <div class="modal-header">
          <h3 class="modal-title">增加新主题</h3>
      </div>
      <div class="modal-body">
            <div class="form-group">
              <label for="_title" class="col-sm-3 control-label">标题</label>
              <div class="col-sm-9">
                <input required ng-model="newtopic.title" type="text" class="form-control" id="_title">
              </div>
            </div>
            <div class="form-group">
              <label for="_user" class="col-sm-3 control-label">主持人</label>
              <div class="col-sm-9">
                <input required ng-model="newtopic.user" type="text" class="form-control" id="_user" >
              </div>
            </div>
            <div class="form-group">
              <label  for="_startdate" class="col-sm-3 control-label">开始时间</label>
              <div class="col-sm-9">
                <p class="input-group">

                  <input type="text" class="form-control" 
                  datepicker-popup="{{format}}" 
                  ng-model="newtopic.sdate" is-open="opened" 
                  min-date="minDate" 
                  datepicker-options="dateOptions" 
                  ng-required="true" 
                  close-text="Close" />
                  <span class="input-group-btn">
                    <button type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                  </span>                    
                  <input ng-model="newtopic.stime" type="text" class="form-control">
                </p>
              </div>
            </div>    
            <div class="form-group">
              <label for="_tags" class="col-sm-3 control-label">标签</label>
              <div class="col-sm-9">
                <input ng-model="newtopic.tagtext" type="text" class="form-control" id="_tags" >
              </div>
            </div>  

            <div class="form-group">
              <label for="_summary" class="col-sm-3 control-label">简介</label>
              <div class="col-sm-9">
                <textarea id="_summary" ng-model="newtopic.summary" class="form-control" rows="3"></textarea>
              </div>
            </div>                                  
            <div class="form-group">
              <div class="col-sm-offset-3 col-sm-9">
                <div class="checkbox">
                  <label>
                    <input ng-model="newtopic.isHomePage" type="checkbox"> 是否立刻升级为首页活动?
                  </label>
                </div>
              </div>
            </div>

            <div class="form-group">
              <div class="col-sm-offset-3 col-sm-9">
                <input type="file" nv-file-select="" uploader="uploader" />
              </div>
            </div>
             
      </div>
      <div class="modal-footer">
          <button type="button"
             ng-disabled="form.$invalid"
           class="btn btn-primary" ng-click="confirm()">添加新主题</button>
      </div>
      </form>      


    </div>
  </div>  
</div>



